#!/usr/bin/env python
# coding=utf-8
# author: wanghaibo
# 此代码仅供学习与交流，请勿用于商业用途。
# 二手房信息的数据结构


class ErShou(object):
    def __init__(self, district, area, xiaoqu_id,house_id,name, price,age, desc,
                 pic,online_day,last_trade_day,bed_num,floor,size,direction,arc_type,
                 house_type,trade_detail,must_look=0):
        self.district = district
        self.area = area
        self.xiaoqu_id = xiaoqu_id
        self.house_id = house_id
        self.price = str(price)
        self.name = name
        self.desc = desc
        self.pic = pic
        self.online_day = "0000-00-00" if online_day == "暂无数据" else online_day
        self.last_trade_day = last_trade_day
        self.bed_num = bed_num
        self.floor = floor
        self.size = size
        self.direction = direction
        self.arc_type = arc_type
        self.house_type = house_type
        self.age = age
        self.trade_detail = trade_detail
        self.must_look = must_look

    def text(self):
        return self.district + "," + \
                self.area + "," + \
                self.xiaoqu_id + "," + \
                self.house_id + "," + \
                self.name + "," + \
                self.size + "," + \
                self.price + "," + \
                self.online_day + "," + \
                self.last_trade_day + "," + \
                self.arc_type + "," + \
                self.age + "," + \
                self.desc + "," + \
                self.trade_detail

if __name__ == "__main__":
    s = 2.5
    print(str(s))